package com.enterprise.application.jetty;

import com.enterprise.support.utility.Enterprise;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.util.resource.Resource;
import org.eclipse.jetty.xml.XmlConfiguration;

/**
 * Created by IntelliJ IDEA.
 * User: Administrator
 * Date: 12-3-16
 * Time: 下午1:47
 * To change this template use File | Settings | File Templates.
 */
public class Start {
    public static void main(String[] args) throws Exception {
        XmlConfiguration configuration = new XmlConfiguration(Resource.newClassPathResource("/config/jetty/server.xml").getURL());
        Server server = (Server) configuration.configure();
        server.start();
        server.join();
    }
}
